/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package GuiCallCenter;
import Iconos.InterfazSupervisor;
import CallCenterComunicate.*;
import javax.swing.table.DefaultTableModel;


/**
 *
 * @author 17240932-6
 */
public class InformeClientes extends javax.swing.JFrame {

    /**
     * Creates new form tabaform
     */
    
    
    
    Cliente cli= new Cliente();     
    Object[][] dtPer; 
    int fila = -1;

    public InformeClientes() {
        initComponents();
    }
    


    
    
    
    
     private void updateTabla(){             
        String[] columNames = {"Rut","Nombre","Ciudad","Voz","Tv","Internet","Email","Telefono","Deuda","Deco","HboHd","HboPlus","PlanInfantil","PlanFutbol"};  
        // se utiliza la funcion
        dtPer = cli.getDatos();
        // se colocan los datos en la tabla
        DefaultTableModel datos = new DefaultTableModel(dtPer,columNames);                        
        tabla.setModel(datos); 
    }
    
    private void nuevo(){
//        jTextRutCliente.setText("");
//        jTextDireccion.setText("");
//        jTextComuna.setText("");
//        jTextLecturaAnterior.setText("");
//        jTextLecturaActual.setText("");
//        jTextNombreCliente.setText("");        
//        jTextFechaDePago.setText("");
//        jTextValorUf.setText("");
//        jTextConsumoActualKW.setText("");
//        jTextConsumoAnteriorKW.setText("");
//        jTextValorAPagar.setText("");
//        jLabelTotalAPagarLetras.setText("");
//        jLabelNoExiste.setText("");
    }

    
    



    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jScrollPane1 = new javax.swing.JScrollPane();
        jTable1 = new javax.swing.JTable();
        jPanel1 = new javax.swing.JPanel();
        jPanel2 = new javax.swing.JPanel();
        jLabelDatosServicios = new javax.swing.JLabel();
        jLabelDatosCLiente = new javax.swing.JLabel();
        jPanelDatosDelCliente = new javax.swing.JPanel();
        jLabelRutCliente = new javax.swing.JLabel();
        jLabelRutClienteInfo = new javax.swing.JLabel();
        jLabelNombreCliente = new javax.swing.JLabel();
        jLabelCiudad = new javax.swing.JLabel();
        jLabelTelefono = new javax.swing.JLabel();
        jLabelEmail = new javax.swing.JLabel();
        jLabelDeudaCliente = new javax.swing.JLabel();
        jLabelEmailInfo = new javax.swing.JLabel();
        jLabelDeudaInfo = new javax.swing.JLabel();
        jLabelCiudadInfo = new javax.swing.JLabel();
        jLabelDeudaClienteInfo = new javax.swing.JLabel();
        jLabelTelefonoInfo = new javax.swing.JLabel();
        jLabelNombreClienteInfo = new javax.swing.JLabel();
        jPanelDatosServicios = new javax.swing.JPanel();
        jLabelPlanVoz = new javax.swing.JLabel();
        jLabelPlanInternet = new javax.swing.JLabel();
        jLabelPlanTelevision = new javax.swing.JLabel();
        jLabelHbohd = new javax.swing.JLabel();
        jLabelHboPlus = new javax.swing.JLabel();
        jLabelPlanInfantil = new javax.swing.JLabel();
        jLabelCantidadDecos = new javax.swing.JLabel();
        jLabelPlanInternetInfo = new javax.swing.JLabel();
        jLabelCantidadDecosInfo = new javax.swing.JLabel();
        jLabelPlanVozInfo = new javax.swing.JLabel();
        jLabelPlanTelevisionInfo = new javax.swing.JLabel();
        jLabelPlanFutbol = new javax.swing.JLabel();
        jLabelHboHdInfo = new javax.swing.JLabel();
        jLabelHboPLusInfo = new javax.swing.JLabel();
        jLabelPlanInfantilInfo = new javax.swing.JLabel();
        jLabelPlanFutbolInfo = new javax.swing.JLabel();
        jPanel3 = new javax.swing.JPanel();
        jScrollPane2 = new javax.swing.JScrollPane();
        tabla = new javax.swing.JTable();
        icono_reporte = new javax.swing.JLabel();
        jButton1 = new javax.swing.JButton();

        jTable1.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jScrollPane1.setViewportView(jTable1);

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 100, Short.MAX_VALUE)
        );

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setPreferredSize(new java.awt.Dimension(1110, 782));
        addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowOpened(java.awt.event.WindowEvent evt) {
                formWindowOpened(evt);
            }
        });

        jPanel2.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanel2.setPreferredSize(new java.awt.Dimension(1110, 681));

        jLabelDatosServicios.setText("Datos de servicios");

        jLabelDatosCLiente.setText("Datos del Cliente");

        jPanelDatosDelCliente.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanelDatosDelCliente.setPreferredSize(new java.awt.Dimension(1100, 159));

        jLabelRutCliente.setText("Rut Cliente");

        jLabelRutClienteInfo.setText(".");

        jLabelNombreCliente.setText("Nombre ");

        jLabelCiudad.setText("Ciudad");

        jLabelTelefono.setText("Telefono");

        jLabelEmail.setText("Email");

        jLabelDeudaCliente.setText("¿Cliente con Deuda?");

        jLabelEmailInfo.setText(".");

        jLabelCiudadInfo.setText(".");

        jLabelDeudaClienteInfo.setText(".");

        jLabelTelefonoInfo.setText(".");

        jLabelNombreClienteInfo.setText(".");

        javax.swing.GroupLayout jPanelDatosDelClienteLayout = new javax.swing.GroupLayout(jPanelDatosDelCliente);
        jPanelDatosDelCliente.setLayout(jPanelDatosDelClienteLayout);
        jPanelDatosDelClienteLayout.setHorizontalGroup(
            jPanelDatosDelClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelDatosDelClienteLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelDatosDelClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelDatosDelClienteLayout.createSequentialGroup()
                        .addGroup(jPanelDatosDelClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabelRutCliente)
                            .addComponent(jLabelCiudad))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanelDatosDelClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jLabelEmailInfo)
                            .addComponent(jLabelCiudadInfo)
                            .addComponent(jLabelRutClienteInfo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                    .addComponent(jLabelEmail))
                .addGap(215, 215, 215)
                .addGroup(jPanelDatosDelClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelDatosDelClienteLayout.createSequentialGroup()
                        .addGroup(jPanelDatosDelClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabelNombreCliente)
                            .addComponent(jLabelTelefono))
                        .addGap(79, 79, 79)
                        .addGroup(jPanelDatosDelClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabelNombreClienteInfo)
                            .addComponent(jLabelTelefonoInfo)))
                    .addGroup(jPanelDatosDelClienteLayout.createSequentialGroup()
                        .addComponent(jLabelDeudaCliente)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabelDeudaClienteInfo)
                        .addGap(1515, 1515, 1515)
                        .addComponent(jLabelDeudaInfo)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanelDatosDelClienteLayout.setVerticalGroup(
            jPanelDatosDelClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelDatosDelClienteLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelDatosDelClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelRutCliente)
                    .addComponent(jLabelRutClienteInfo)
                    .addComponent(jLabelNombreCliente)
                    .addComponent(jLabelNombreClienteInfo))
                .addGap(26, 26, 26)
                .addGroup(jPanelDatosDelClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelCiudad)
                    .addComponent(jLabelCiudadInfo)
                    .addComponent(jLabelTelefono)
                    .addComponent(jLabelTelefonoInfo))
                .addGap(15, 15, 15)
                .addGroup(jPanelDatosDelClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelEmail)
                    .addComponent(jLabelEmailInfo)
                    .addComponent(jLabelDeudaInfo)
                    .addComponent(jLabelDeudaCliente)
                    .addComponent(jLabelDeudaClienteInfo))
                .addContainerGap(57, Short.MAX_VALUE))
        );

        jPanelDatosServicios.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanelDatosServicios.setPreferredSize(new java.awt.Dimension(1100, 299));

        jLabelPlanVoz.setText("Plan Voz");

        jLabelPlanInternet.setText("Plan Internet");

        jLabelPlanTelevision.setText("Plan Television");

        jLabelHbohd.setText("HBO HD");

        jLabelHboPlus.setText("HBO PLUS");

        jLabelPlanInfantil.setText("Plan Infantil");

        jLabelCantidadDecos.setText("Cantidad Decos");

        jLabelPlanInternetInfo.setText("Plan");

        jLabelCantidadDecosInfo.setText("jLabel1");

        jLabelPlanVozInfo.setText(".");

        jLabelPlanTelevisionInfo.setText(".");

        jLabelPlanFutbol.setText("Plan Futbol");

        jLabelHboHdInfo.setText(".");

        jLabelHboPLusInfo.setText(".");

        jLabelPlanInfantilInfo.setText(".");

        jLabelPlanFutbolInfo.setText(".");

        javax.swing.GroupLayout jPanelDatosServiciosLayout = new javax.swing.GroupLayout(jPanelDatosServicios);
        jPanelDatosServicios.setLayout(jPanelDatosServiciosLayout);
        jPanelDatosServiciosLayout.setHorizontalGroup(
            jPanelDatosServiciosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelDatosServiciosLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelDatosServiciosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelDatosServiciosLayout.createSequentialGroup()
                        .addGroup(jPanelDatosServiciosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(jPanelDatosServiciosLayout.createSequentialGroup()
                                .addComponent(jLabelPlanVoz)
                                .addGap(54, 54, 54)
                                .addComponent(jLabelPlanVozInfo))
                            .addGroup(jPanelDatosServiciosLayout.createSequentialGroup()
                                .addGroup(jPanelDatosServiciosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabelPlanTelevision)
                                    .addComponent(jLabelPlanInfantil)
                                    .addComponent(jLabelPlanFutbol))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(jPanelDatosServiciosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabelPlanInfantilInfo)
                                    .addComponent(jLabelPlanTelevisionInfo)
                                    .addComponent(jLabelPlanFutbolInfo))))
                        .addGap(1278, 1278, 1278)
                        .addGroup(jPanelDatosServiciosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabelPlanInternet)
                            .addComponent(jLabelCantidadDecos)))
                    .addGroup(jPanelDatosServiciosLayout.createSequentialGroup()
                        .addGap(346, 346, 346)
                        .addGroup(jPanelDatosServiciosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanelDatosServiciosLayout.createSequentialGroup()
                                .addComponent(jLabelHboPlus)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jLabelHboPLusInfo))
                            .addGroup(jPanelDatosServiciosLayout.createSequentialGroup()
                                .addComponent(jLabelHbohd)
                                .addGap(19, 19, 19)
                                .addComponent(jLabelHboHdInfo)))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelDatosServiciosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelPlanInternetInfo)
                    .addComponent(jLabelCantidadDecosInfo))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanelDatosServiciosLayout.setVerticalGroup(
            jPanelDatosServiciosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelDatosServiciosLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelDatosServiciosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelPlanVoz)
                    .addComponent(jLabelPlanInternet)
                    .addComponent(jLabelPlanInternetInfo)
                    .addComponent(jLabelPlanVozInfo)
                    .addComponent(jLabelHbohd)
                    .addComponent(jLabelHboHdInfo))
                .addGap(18, 18, 18)
                .addGroup(jPanelDatosServiciosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelPlanTelevision)
                    .addComponent(jLabelCantidadDecos)
                    .addComponent(jLabelCantidadDecosInfo)
                    .addComponent(jLabelPlanTelevisionInfo)
                    .addComponent(jLabelHboPlus)
                    .addComponent(jLabelHboPLusInfo))
                .addGap(18, 18, 18)
                .addGroup(jPanelDatosServiciosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelPlanInfantil)
                    .addComponent(jLabelPlanInfantilInfo))
                .addGap(26, 26, 26)
                .addGroup(jPanelDatosServiciosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelPlanFutbol)
                    .addComponent(jLabelPlanFutbolInfo))
                .addContainerGap(36, Short.MAX_VALUE))
        );

        jPanel3.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanel3.setPreferredSize(new java.awt.Dimension(1100, 153));

        jScrollPane2.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
        jScrollPane2.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);

        tabla.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null, null, null, null, null, null, null}
            },
            new String [] {
                "Rut", "Nombre", "Ciudad", "Voz", "Tv", "Internet", "Email", "Telefono", "Deuda", "Deco", "Hbo HD", "Hbo Plus", "Plan Infantil", "Plan Futbol"
            }
        ));
        tabla.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_OFF);
        tabla.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        tabla.setEnabled(false);
        tabla.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                tablaMouseClicked(evt);
            }
        });
        jScrollPane2.setViewportView(tabla);

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 1083, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 13, Short.MAX_VALUE))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 129, Short.MAX_VALUE)
                .addContainerGap())
        );

        icono_reporte.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Iconos/Document-Copy-icon.png"))); // NOI18N
        icono_reporte.setText("Reporte de Clientes");

        jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Iconos/ATRAS.png"))); // NOI18N
        jButton1.setText("Volver ");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGap(472, 472, 472)
                .addComponent(icono_reporte)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelDatosCLiente)
                    .addComponent(jLabelDatosServicios)
                    .addComponent(jPanelDatosDelCliente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanelDatosServicios, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGap(35, 35, 35)
                        .addComponent(jButton1)))
                .addGap(0, 19, Short.MAX_VALUE))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(icono_reporte)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLabelDatosCLiente)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanelDatosDelCliente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabelDatosServicios)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanelDatosServicios, javax.swing.GroupLayout.PREFERRED_SIZE, 174, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButton1)
                .addGap(39, 39, 39))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, 1123, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, 694, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 88, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void tablaMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tablaMouseClicked
   fila = tabla.rowAtPoint(evt.getPoint());                 
        if (fila> -1){                          
             jLabelRutClienteInfo.setText(String.valueOf(tabla.getValueAt(fila, 0)));
            jLabelNombreClienteInfo.setText(String.valueOf(tabla.getValueAt(fila, 1)));
            jLabelCiudadInfo.setText(String.valueOf(tabla.getValueAt(fila, 2)));
            jLabelEmailInfo.setText(String.valueOf(tabla.getValueAt(fila, 6)));
            jLabelTelefonoInfo.setText(String.valueOf(tabla.getValueAt(fila, 7)));
            jLabelDeudaClienteInfo.setText(String.valueOf(tabla.getValueAt(fila, 8)));
            jLabelPlanVozInfo.setText(String.valueOf(tabla.getValueAt(fila, 3)));
            jLabelPlanTelevisionInfo.setText(String.valueOf(tabla.getValueAt(fila, 4)));
            jLabelHboHdInfo.setText(String.valueOf(tabla.getValueAt(fila, 10)));
            jLabelHboPLusInfo.setText(String.valueOf(tabla.getValueAt(fila, 11)));
            jLabelPlanInternetInfo.setText(String.valueOf(tabla.getValueAt(fila, 5)));
            jLabelCantidadDecosInfo.setText(String.valueOf(tabla.getValueAt(fila, 9)));
            jLabelPlanInfantilInfo.setText(String.valueOf(tabla.getValueAt(fila, 12)));
            jLabelPlanFutbolInfo.setText(String.valueOf(tabla.getValueAt(fila, 13)));
        }        // TODO add your handling code here:
    }//GEN-LAST:event_tablaMouseClicked

    private void formWindowOpened(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowOpened
               //objeto para almacenar datos
        Cliente cli= new Cliente();
        Object[][] dtPer;        
        String[] columNames = {"Rut","Nombre","Ciudad","Voz","Tv","Internet","Email","Telefono","Deuda","Deco","HboHd","HboPlus","PlanInfantil","PlanFutbol"};  
        // se utiliza la funcion
        dtPer = cli.getDatos();
        // se colocan los datos en la tabla
        DefaultTableModel datos = new DefaultTableModel(dtPer,columNames);                        
        tabla.setModel(datos);
        updateTabla();   
        nuevo();

    }//GEN-LAST:event_formWindowOpened

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        // TODO add your handling code here:
                 Interfazsupervisor l=new Interfazsupervisor();
                 l.show();
                 hide();
    }//GEN-LAST:event_jButton1ActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(InformeClientes.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(InformeClientes.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(InformeClientes.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(InformeClientes.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new InformeClientes().setVisible(true);
            }
        });
    }
    
    
    
    
    
    
    

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel icono_reporte;
    private javax.swing.JButton jButton1;
    private javax.swing.JLabel jLabelCantidadDecos;
    private javax.swing.JLabel jLabelCantidadDecosInfo;
    private javax.swing.JLabel jLabelCiudad;
    private javax.swing.JLabel jLabelCiudadInfo;
    private javax.swing.JLabel jLabelDatosCLiente;
    private javax.swing.JLabel jLabelDatosServicios;
    private javax.swing.JLabel jLabelDeudaCliente;
    private javax.swing.JLabel jLabelDeudaClienteInfo;
    private javax.swing.JLabel jLabelDeudaInfo;
    private javax.swing.JLabel jLabelEmail;
    private javax.swing.JLabel jLabelEmailInfo;
    private javax.swing.JLabel jLabelHboHdInfo;
    private javax.swing.JLabel jLabelHboPLusInfo;
    private javax.swing.JLabel jLabelHboPlus;
    private javax.swing.JLabel jLabelHbohd;
    private javax.swing.JLabel jLabelNombreCliente;
    private javax.swing.JLabel jLabelNombreClienteInfo;
    private javax.swing.JLabel jLabelPlanFutbol;
    private javax.swing.JLabel jLabelPlanFutbolInfo;
    private javax.swing.JLabel jLabelPlanInfantil;
    private javax.swing.JLabel jLabelPlanInfantilInfo;
    private javax.swing.JLabel jLabelPlanInternet;
    private javax.swing.JLabel jLabelPlanInternetInfo;
    private javax.swing.JLabel jLabelPlanTelevision;
    private javax.swing.JLabel jLabelPlanTelevisionInfo;
    private javax.swing.JLabel jLabelPlanVoz;
    private javax.swing.JLabel jLabelPlanVozInfo;
    private javax.swing.JLabel jLabelRutCliente;
    private javax.swing.JLabel jLabelRutClienteInfo;
    private javax.swing.JLabel jLabelTelefono;
    private javax.swing.JLabel jLabelTelefonoInfo;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanelDatosDelCliente;
    private javax.swing.JPanel jPanelDatosServicios;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JTable jTable1;
    private javax.swing.JTable tabla;
    // End of variables declaration//GEN-END:variables
}

